LFLAG=-L../third-lib/lib -pthread -lmuduo_net -lmuduo_base -lgtest -lprotobuf -lsqlite3 -lz
CFLAG=-I../third-lib/include

.PHONY:consum_client publish_client
all:consum_client publish_client
consum_client:consum_client.cpp ../comm/msg.pb.cc ../comm/mq.pb.cc ../third-lib/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 $(CFLAG) $(LFLAG)
publish_client:publish_client.cpp ../comm/msg.pb.cc ../comm/mq.pb.cc ../third-lib/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 $(CFLAG) $(LFLAG) 